
from django.conf.urls.defaults import patterns, include, url

from django.contrib import admin
import settings

__author__ = 'Nataliel Vasconcelos'

admin.autodiscover()

urlpatterns = patterns('',

    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
    (r'^media/(.*)$', 'django.views.static.serve',
         {'document_root': settings.MEDIA_ROOT}),
    (r'^js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'templates/js'}),
    (r'^comments/', include('django.contrib.comments.urls')),
    (r'^$', 'WebSite.views.homepage'),
    (r'duvidas', 'WebSite.views.doubts'),
    (r'cartilha', 'WebSite.views.spellingBook'),
    (r'index', 'WebSite.views.homepage'),
    (r'^noticia-interna/(?P<slugNews>[\w_-]+)/$', 'WebSite.views.newsIntern'),
    (r'noticias', 'WebSite.views.news'),
    (r'sobre', 'WebSite.views.about'),
    (r'contato', 'WebSite.views.contact'),
    (r'quiz-final/(\d+)$', 'WebSite.views.quizFinal'),
    (r'quiz-login', 'WebSite.views.loginUser'),
    (r'user-register', 'WebSite.views.registerUser'),
#    (r'quiz-login', 'WebSite.views.registerUser'),
    (r'quiz-painel', 'WebSite.views.quizPainel'),
    (r'quiz-perguntas/(\d+)$', 'WebSite.views.quizPerguntas'),
    (r'logout', 'WebSite.views.logoutView'),

)
